using NUnit.Framework;
using RFS.BizLogic;
using RFS.BizLogic.PaiShi;
using RFS.BizLogic.Sys;
using RFS.Domain.PaiShi;
using ycx;

namespace IntergrationTest.PaiShi
{
    public class ItWorkFlow
    {
        private IAntiObject _en;


        [SetUp]
        public void setup()
        {
            _en = Starter.StartApp(false );
        }


        [Test]
        public void T10_BuildTheWorkFlow_GivenaDB_returnsWorkFlow_YS()
        {
          
          var bn = "2024-12-13";
          var wm=  _en.Get<IWorkFlowManager>();
          var wf=wm.GetByBatchNo(bn, BizFlowNodeEnum.YanShou);
          Assert.False(wf.Problem.IsAny);
          
          wf.Echo();
          
          // 1-流拍重组,    2160
          // 8,                    46280
          Assert.True(wf.WorkFlowNode.Quantiy==46280 );

        }

        
          [Test]
        public void T10_BuildTheWorkFlowFaHuo_GivenaDB_returnsWorkFlow_FH()
        {
          
          var bn = "2024-12-13";
          var wm=  _en.Get<IWorkFlowManager>();
          var wf=wm.GetByBatchNo(bn, BizFlowNodeEnum.FaHuo);
          Assert.False(wf.Problem.IsAny);
          
           wf.Echo();

           
        }

        
         
         
    }
}